<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		
		// arr = [5,5,6,56,5,6];

		// arr.spilce();
		// document.write()
		// window.alert()
		// document.getElementById();
		// 
		// var bbb = 90;

		// alert(window.bbb);


		// function run() {
		// 	alert(777);
		// }

		// window.run();
		// 
		var str = "NdfgKJNDfnsdf";

		// var  arr= [];

		var  str1 = '';

		for (var i = 0; i < str.length; i++) {
			if(str[i]==str[i].toLowerCase()){
				// arr.push(str[i].toUpperCase());
				str1 +=str[i].toUpperCase();
			}else{
				// arr.push(str[i].toLowerCase());
				str1 +=str[i].toLowerCase()
			}
		}

		// document.write(str1);



		// 1-47 随机的7个数


		var arr = [];

		for (var i = 0; i < 7; i++) {
			
			num = Math.round((Math.random()*(47-1)+1));

			is =true;

			for(var k in arr){
				if(arr[k]==num){
					is = false;
					i--;
				}
			}

			if(is){
				arr.push(num);
			}
			
		}

		// document.write(arr);



		var nowTime = Math.round((new Date).getTime()/1000);

		var wuyiTime = Math.round((new Date('2018-05-01 0:0:0')).getTime()/1000);

		var diff = wuyiTime-nowTime;

		var day  = Math.floor(diff/86400);

		var hdiff = diff%86400;

		var hours  = Math.floor(hdiff/3600);

		var mdiff = hdiff%3600;

		var min  = Math.floor(mdiff/60);

		var Second = mdiff%60;

		document.write(day+"天"+hours+"小时"+min+"分钟"+Second+"秒");

		// document.write(wuyiTime);


		console.log(window)




	</script>
</head>
<body>
	
</body>
</html>